import request from '@/utils/request'

// **************商品中心**********************

         // ****品牌管理*********
export function brandAdminList (data) { //品牌管理列表
 return request({
   url: '/mall-goods/mall-goods-brand/search',
   method: 'get',
   params : data
 })
}
export function classList (parentId) { //商品分类-分类查询(用于商品添加)
 return request({
   url: '/mall-goods/mall-goods-category/search',
   method: 'get',
   params : {parentId}
 })
}
export function oneClasList (data) { //一级分类
 return request({
   url: '/mall-goods/mall-goods-category/tree',
   method: 'get',
   params : data
 })
}
export function detailsbrand (brandId) { //品牌详情
 return request({
   url: '/mall-goods/mall-goods-brand',
   method: 'get',
   params : {brandId}
 })
}
export function addbrand (data,method) { //添加修改品牌
  return request({
    url: '/mall-goods/mall-goods-brand',
    method: method,
    data
  })
}
export function delbrand (id) { //删除品牌
  return request({
    url: '/mall-goods/mall-goods-brand',
    method: 'DELETE',
    data : id
  })
}
